package com.boot.core.result

data class EChartsBar(
        val animation: Boolean = false,
        val color: List<String>,
        val legend: Legend,
        var series: MutableList<SeriesItem> = mutableListOf(),
        val title: Title,
        var xAxis: MutableList<XAxi> = mutableListOf(),
        val yAxis: MutableList<YAxi> = mutableListOf()
) {
    data class SeriesItem(
            val `data`: List<Int>,
            val name: String,
            val type: String
    )

    data class YAxi(
            val type: String
    )

    data class Legend(
            val `data`: List<String>
    )

    data class Title(
            val text: String
    )

    data class XAxi(
            val `data`: List<String>,
            val type: String
    )
}